package com.ahua.mallchat.common.Thread;

import lombok.extern.slf4j.Slf4j;

/**
 * 自定义线程 异常捕获处理器
 */
@Slf4j
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    /**
     * 具体的异常捕获逻辑
     */
    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.error("Exception in thread", e);
    }
}
